package com.example.spring.iocbug;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;

/**
 * @author houyangfan
 * @version 1.0
 * @date 2022/8/3 14:38
 */
@Service
@Slf4j
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class SayHello extends SayService{

    @Override
    public void say() {
        super.say();
        log.error("say hello");
    }
}
